package com.campus.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

@TableName(value = "t_manager_student", schema = "campus")
public class Student implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(value = "stu_name")
    private String name;

    @TableField(value = "from_place")
    private String fromPlace;

    @TableField(value = "parent_phone")
    private String parentPhone;

    @TableField(value = "current_grade")
    private String currentGrade;

    @TableField(value = "is_first")
    private String isFirst;

    @TableField(value = "code")  // Add the code field to map the 'code' column in the database
    private String code;

    @TableField(value = "comment")
    private String comment;

    // Getters and Setters

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFromPlace() {
        return fromPlace;
    }

    public void setFromPlace(String fromPlace) {
        this.fromPlace = fromPlace;
    }

    public String getParentPhone() {
        return parentPhone;
    }

    public void setParentPhone(String parentPhone) {
        this.parentPhone = parentPhone;
    }

    public String getCurrentGrade() {
        return currentGrade;
    }

    public void setCurrentGrade(String currentGrade) {
        this.currentGrade = currentGrade;
    }

    public String getIsFirst() {
        return isFirst;
    }

    public void setIsFirst(String isFirst) {
        this.isFirst = isFirst;
    }

    public String getCode() {
        return code;  // Getter for 'code'
    }

    public void setCode(String code) {
        this.code = code;  // Setter for 'code'
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}
